cmake_minimum_required(VERSION 3.10)
project (main)

set (EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
aux_source_directory (src SRC_LIST)

set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake;${CMAKE_MODULE_PATH}")
add_executable (main ${SRC_LIST})
find_package(ADD)
if(ADD_FOUND)
    target_include_directories(main PRIVATE ${ADD_INCLUDE_DIR})
    target_link_libraries(main ${ADD_LIBRARY})
else(ADD_FOUND)
    message(FATAL_ERROR "ADD library not found")
endif(ADD_FOUND)



#target_include_directories(main ${EXTERNAL_INCS})
#target_link_libraries(main ${EXTERNAL_LIBS} ${CMAKE_THREAD_LIBS_INIT} gflags)

